<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fn"  uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ page import="kr.co.insoft.framework.config.Authorities" %>
<c:set var="CONTEXT">${pageContext.request.contextPath}</c:set>
<c:set var="cssUrl">${pageContext.request.contextPath}/resources/css</c:set>
<c:set var="imgUrl">${pageContext.request.contextPath}/resources/images</c:set>
<c:set var="jsUrl">${pageContext.request.contextPath}/resources/js</c:set>
<form:form modelAttribute="compositeStackEntityModel" role="form" action="" method="post" class="form-horizontal">
	<form:input type="hidden" path="compositeid"/>
	<div class="form-group">
		<label class="col-sm-2 control-label">상위 서비스</label>
		<div class="col-sm-10">${compositeStackEntityModel.composite.service.project.projectName }</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">상위 서비스</label>
		<div class="col-sm-10">${compositeStackEntityModel.composite.service.serviceName }</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">상위 서비스</label>
		<div class="col-sm-10">${compositeStackEntityModel.composite.compositeName }</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">VM Composite Stack Name</label>
		<div class="col-sm-10">
			<form:input path="stackName" placeholder="영문 소문자와 '-'만을 이용하실수있습니다"/>
		</div>
	</div>
	<div class="form-group">
		<label for="compositeHatype" class="col-sm-2 control-label">Template</label>
		<div class="col-sm-10">
			<form:checkbox path="template" />
		</div>
	</div>
	<div class="form-group">
		<label for="compositeHatype" class="col-sm-2 control-label">Dedi Machine</label>
		<div class="col-sm-10">
			<form:checkbox path="dedi" />
		</div>
	</div>
	<div class="form-group">
		<label for="compositeDesc" class="col-sm-2 control-label">Connection Lists</label>
		<div class="col-sm-10">
			<form:select path="connectionid" cssClass="form-control connectionSelect">
				<form:option value=""><spring:message code="select.seleted.message"/></form:option>
				<form:options items="${connections }" itemLabel="connectionName" itemValue="connectionid"/>
			</form:select>
		</div>
	</div>
	<div class="form-group">
		<label for="compositeDesc" class="col-sm-2 control-label">Hardware</label>
		<div class="col-sm-10">
			<form:input type="hidden" path="hardwareProfileName"/>
			<form:select path="hardwareProfileId" cssClass="form-control">
				<form:option value=""><spring:message code="select.seleted.message"/></form:option>
			</form:select>
		</div>
	</div>
	<div class="form-group">
		<label for="compositeDesc" class="col-sm-2 control-label">Image</label>
		<div class="col-sm-10">
			<form:input type="hidden" path="imageName"/>
			<form:select path="imageId" cssClass="form-control">
				<form:option value=""><spring:message code="select.seleted.message"/></form:option>
			</form:select>
		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button class="btn btn-primary btnSubPageCreate" data-types="vmcompositestack" type="button">생성</button>
		</div>
	</div>
</form:form>